<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">


<ui:composition template="/AdminTemplate.xhtml">
<ui:define name="page">
	<h1>Modification de la durée de vie d'une option payante</h1>
	<h:form>
	<input type="hidden" name="acid" value="#{adminLogin.optionpay.id}"/>
	<table>
		<tr>
			<td align="right">
				Nom
			</td>
			<td width="15"></td>
			<td>
                <h:inputText value="#{adminLogin.optionpay.nom}" required="true"  id="nom" readonly="true"/>
                <h:message for="nom"/>
			</td>
		</tr>
		<tr>
			<td align="right">
				Description
			</td>
			<td width="15"></td>
			<td>
                <h:inputTextarea value="#{adminLogin.optionpay.description}" required="true"  id="description" readonly="true"/>
                <h:message for="description"/>
			</td>
		</tr>
		<tr>
			<td align="right">
				duree de vie
			</td>
			<td width="15"></td>
			<td>
                <h:inputText value="#{adminLogin.optionpay.dureedevie}" required="true"  id="duree"/>
                <h:message for="duree"/>
			</td>
		</tr>

            		<tr>
			<td align="right">
				prix
			</td>
			<td width="15"></td>
			<td>
                <h:inputText value="#{adminLogin.optionpay.prix}" required="true"  id="prix" readonly="true"/>
                <h:message for="prix"/>
			</td>
		</tr>

		<tr>
			<td align="right" colspan="3">
				<h:commandButton value="Modifier" action="#{adminLogin.ModifierDureeOP}" />
			</td>
		</tr>

	</table>
	</h:form>
</ui:define>
</ui:composition>
</html>